home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / TestTools / Sources / MiscTests.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  1.5 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MiscTests.h
  3.  
  4.     Contains:    Declaration of miscellaneous classes
  5.  
  6.     Copyright:    © 1993-1994 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. #ifndef __MISCTEST__
  11. #define __MISCTEST__
  12.  
  13. #ifndef __LIBRARYMANAGER__
  14. #include <LibraryManager.h>
  15. #endif
  16.  
  17. /*******************************************************************************
  18. ** CLASS TNoVTable
  19. ********************************************************************************/
  20.  
  21. #define kTNoVTableID    "appl:test$TNoVTable,1.2"
  22.  
  23. class TNoVTable
  24. {
  25.     public:
  26.                 TNoVTable(long value);
  27.                 ~TNoVTable();
  28.                 
  29.     long        _CDECL Add(long);
  30.     long        _CDECL Sub(long);
  31.     
  32.     private:
  33.         long    fValue;
  34. };
  35.  
  36. /*******************************************************************************
  37. ** CLASS TStdVTable
  38. ********************************************************************************/
  39.  
  40. #define kTStdVTableID    "appl:test$TStdVTable,1.2"
  41.  
  42. class TStdVTable : public TStdDynamic
  43. {
  44.     public:
  45.                         TStdVTable(long value);
  46.         virtual            ~_CDECL TStdVTable();
  47.         
  48.         virtual long    _CDECL Add(long);
  49.         virtual long    _CDECL Sub(long);
  50.         
  51.     private:
  52.         long    fValue;
  53. };
  54.  
  55. /*******************************************************************************
  56. ** CLASS TTimings
  57. ********************************************************************************/
  58.  
  59. #define kTTimingsID    "appl:test$TTimings,1.2"
  60.  
  61. class TTimings : public TSimpleDynamic
  62. {
  63.     public:
  64.                     TTimings();
  65.                     ~_CDECL TTimings();
  66.                 
  67.     virtual void    VirtualFunc();
  68.             void    Method();
  69.     
  70.     static  void    StaticFunc(void*);
  71. };
  72.  
  73. #endif
  74.  
  75.